package com.beijiteshop.shop.ui.coupon

import com.beijiteshop.libcommon.network.RetrofitClient
import com.beijiteshop.shop.ui.coupon.repo.CouponRepo
import com.beijiteshop.shop.ui.coupon.repo.CouponService
import com.beijiteshop.shop.ui.coupon.vm.CouponVM
import org.koin.android.experimental.dsl.viewModel
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module

/**
 * @Author LiaoZhongKai
 * @Date 2021/3/17 18:23
 * @Description
 */

val couponModule = module {
    single {
        get<RetrofitClient>().getService(CouponService::class.java)
    }

    single {
        CouponRepo(get())
    }

    viewModel{
        CouponVM(get())
    }
}